<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<table>
<form name="updatePrice" action="updatePrice" method="updatePrice">
<s:if test="prices.size() > 0">	
		<tr><td><b>Price Type</b></td><td><b>Price</b></td><td><b>Special Price</b></td><td><b>Start Date</b></td><td><b>End Date</b></td><td><b>Comment</b></td></tr>
		<s:iterator value="prices">	
			<tr>
					<td><s:property value="priceType.priceType" /></td>
					<td><input type="text" name="price" value='<s:property value="price" />'></td>	
					<td><input type="text" name="specialprice" value='<s:property value="specialprice" />'></td>
					<td><input type="text" name="startdate" value='<s:property value="startdate" />'></td>
					<td><input type="text" name="startdate" value='<s:property value="enddate" />'></td>
					<td><input type="text" name="startdate" value='<s:property value="comment" />'></td>
					<td><input type="submit" value="Change"></td>
			</tr>
		</s:iterator>
</s:if>
</form>
</table>
<div style="display:none">
	<table>
				<tr>
					<td><s:property value="priceType.priceType" /></td>
					<td><input type="text" name="price" value='<s:property value="price" />'></td>	
					<td><input type="text" name="specialprice" value='<s:property value="specialprice" />'></td>
					<td><input type="text" name="startdate" value='<s:property value="startdate" />'></td>
					<td><input type="text" name="startdate" value='<s:property value="enddate" />'></td>
					<td><input type="text" name="startdate" value='<s:property value="comment" />'></td>
					<td><input type="submit" value="Change"></td>
				</tr>
	</table>
</div>
<table>
<tr><td></td><td></td><td></td><td></td><td></td><td></td><td><a href="newPrice?uuid=${uuid}&p=${p}"><b>New</b></a></td></tr>
</table>

<br/><br/>
<a href="product?p=${p}"><b>Back</b></a>